Advertisement
Guest User

Untitled

a guest
Sep 15th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ###REPLACE###
  2. while (!digitalRead(home_switch)) { // Make the Stepper move CW until the switch is deactivated
  3. stepperX.moveTo(initial_homing);
  4. stepperX.run();
  5. initial_homing+=home_step;
  6. //delay(1);
  7. }
  8. ###with###
  9. stepperX.moveTo(home_step);
  10. while (!digitalRead(home_switch)) { // Make the Stepper move CW until the switch is deactivated
  11. stepperX.run();
  12. //delay(1);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement